/**
 * Created by henian.xu on 2017/3/30.
 *
 */
$(function () {


  $("#jquery_jplayer_1").jPlayer({
    ready: function () {
      $(this).jPlayer("setMedia", {
        title: "Big Buck Bunny",
        m4v: "http://cloud.video.taobao.com/play/u/2554695624/p/1/e/6/t/1/fv/102/28552077.mp4",
        M3U8V:"视频地址",
        // ogv: "http://www.jplayer.org/video/ogv/Big_Buck_Bunny_Trailer.ogv",
        // webmv: "http://www.jplayer.org/video/webm/Big_Buck_Bunny_Trailer.webm",
        poster: "../static/images/playing/player.jpg"
      });
    },
    swfPath: "../static/libs/jplayer",
    supplied: "webmv, ogv, m4v, M3U8V",
    size: {
      width: "680px",
      height: "460px",
      cssClass: "jp-video-460p"
    },
    useStateClassSkin: true,
    autoBlur: false,
    smoothPlayBar: true,
    keyEnabled: true,
    remainingDuration: true,
    toggleDuration: true
  });


  /*// 初始化播放器
  var player = new prismplayer({
    id: "J_prismPlayer", // 容器id
    source: "http://cloud.video.taobao.com/play/u/2554695624/p/1/e/6/t/1/fv/102/28552077.mp4",// 视频地址
    cover:"../static/images/playing/player.jpg",
    showBuffer:false,
    autoplay: false,    //自动播放：否
    width: "100%",       // 播放器宽度
    height: "460px"      // 播放器高度
  });
  var clickDom = document.getElementById("J_clickToPlay");
  clickDom.addEventListener("click", function(e) {
    // 调用播放器的play方法
    player.play();
  });
  // 监听播放器的pause事件
  player.on("pause", function() {
    alert("播放器暂停啦！");
  });*/

});